# coding=utf-8

# pip install python-docx
from docx import Document

doc = Document('文本.docx')

for p in doc.paragraphs:
    print(p.text)

for t in doc.tables:
    for row in t.rows:
        _row_str = ''
        for cell in row.cells:
            _row_str += cell.text + ','
        print(_row_str)
